package com.jinhao.crowd.service.api;

import com.github.pagehelper.PageInfo;
import com.jinhao.crowd.entity.Role;

import java.util.List;

/**
 * Created on 2020/10/20.
 *
 * @author Valar Morghulis
 */
public interface RoleService {

    PageInfo<Role> getPageInfo(Integer pageNum, Integer pageSize, String keyword);

    void saveRole(Role role);

    void updateRole(Role role);

    void removeRoleById(Integer[] roleIdArray);

    List<Role> getAssignedRoles(Integer adminId);

    List<Role> getUnAssignedRoles(Integer adminId);
}
